package com.appkubes.mall.restful.fintech.user.basic.service.impl;

import com.appkubes.mall.core.po.FintechUser;
import com.appkubes.mall.restful.fintech.user.basic.dao.FintechUserDao;
import com.appkubes.mall.restful.fintech.user.basic.entity.vo.FintechUserVO;
import com.appkubes.mall.restful.fintech.user.basic.service.FintechUserService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FintechUserServiceImpl implements FintechUserService {

    @Resource
    FintechUserDao fintechUserDao;

    @Override
    public int register(FintechUserVO fintechUserVO) {
        FintechUser fintechUser = new FintechUser();
        BeanUtils.copyProperties(fintechUserVO, fintechUser);
        return fintechUserDao.insertSelective(fintechUser);
    }
}
